<?php
class Contact extends CI_Model {
	
	function __construct() {
		parent::__construct ();
		$this->load->helper('cookie');
	}
	public function m_contact(){
		$language = get_cookie('lz_l');
		if(empty($language)){
			$language = $this->config->item('languages');
		}
		$params[] = $language = strtolower($language);
		$this->load->library('simple_cache', $params);
		 
		$data['naviTits'] = $this->simple_cache->getItem('naviTits');
		$data['subNaviTits'] = $this->simple_cache->getItem('subNaviTits');
		$data['contact'] = $this->simple_cache->getItem('contact');
		 
		$data['site_title'] = $this->config->item('site_title');
		$data['tab'] = 'contact';
		
		//友情链接
		$data['flink'] = $this->simple_cache->getItem('flink'); 
		//每日一句
		$data['dailyone'] = $this->simple_cache->getItem('dailyone');
		$this->load->vars($data);
	}
	function __destruct() {
	
	}
}

?>